#ifndef SISE_H
#define SISE_H

#ifdef __cplusplus
extern "C" {
#endif

static const char* SISE_HEXA = "0123456789ABCDEF";

char sise_nullify(char* pBuf, unsigned int size);

char sise_is_big_endian();

char sise_hexchar2char(char hex);

int sise_hex2bin_auto(char* pHex, char* pBin, unsigned int sizeBin);

int sise_bin2hex_auto(char* pHex, char* pBin, unsigned int sizeBin);

int sise_hex2bin(char* pHex, char* pBin, unsigned int sizeBin);

int sise_bin2hex(char* pHex, char* pBin, unsigned int sizeBin);

int sise_bin2short(char* pBin, short* pVar);

int sise_bin2int(char* pBin, int* pVar);

int sise_bin2long(char* pBin, long* pVar);

int sise_bin2float(char* pBin, float* pVar);

int sise_bin2double(char* pBin, double* pVar);

int sise_var2bin_short(char* pBin, short* pVar);

int sise_var2bin_int(char* pBin, int* pVar);

int sise_var2bin_long(char* pBin, long* pVar);

int sise_var2bin_float(char* pBin, float* pVar);

int sise_var2bin_double(char* pBin, double* pVar);

#ifdef __cplusplus
}
#endif

#endif // SISE_H
